package com.home.Entity;

import java.math.BigDecimal;
import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.hibernate.annotations.Proxy;

@Entity
@Proxy(lazy=false)
@Table(name="THUONGPHAT")
public class ThuongPhat {
	
	@Id
	@Column(name="THP_MASO")
	private long maSo;
	@Column(name="THP_NGAY")
	private Date ngay;
	@Column(name="THP_SOTIEN")
	private BigDecimal soTien;
	@Column(name="THP_LYDO")
	private String lyDo;
	@ManyToOne
	@JoinColumn(name="THP_NHANVIEN")
	private NhanVien nhanVien;
	public long getMaSo() {
		return maSo;
	}
	public void setMaSo(long maSo) {
		this.maSo = maSo;
	}
	public Date getNgay() {
		return ngay;
	}
	public void setNgay(Date ngay) {
		this.ngay = ngay;
	}
	public BigDecimal getSoTien() {
		return soTien;
	}
	public void setSoTien(BigDecimal soTien) {
		this.soTien = soTien;
	}
	public String getLyDo() {
		return lyDo;
	}
	public void setLyDo(String lyDo) {
		this.lyDo = lyDo;
	}
	public NhanVien getNhanVien() {
		return nhanVien;
	}
	public void setNhanVien(NhanVien nhanVien) {
		this.nhanVien = nhanVien;
	}
	
	
	
	
	
	
	
	
	
}
